/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(220, 8%, 15%);
    --primary: hsl(217, 91%, 48%);
    --primary-foreground: hsl(217, 91%, 98%);
    --muted: hsl(220, 8%, 92%);
    --muted-foreground: hsl(220, 6%, 35%);
    --card: hsl(0, 0%, 98%);
    --card-foreground: hsl(220, 8%, 15%);
    --border: hsl(220, 6%, 90%);
    
    /* Font */
    --font-sans: 'Inter', system-ui, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Animations */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

body {
    font-family: var(--font-sans);
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all var(--transition-slow);
}

.nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    transition: color var(--transition-base);
    font-size: 1rem;
    font-family: var(--font-sans);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-buttons {
    display: none;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-buttons {
        display: flex;
    }
}

.nav-mobile-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .nav-mobile-toggle {
        display: none;
    }
}

.close-icon {
    display: none;
}

.nav-mobile-toggle.active .menu-icon {
    display: none;
}

.nav-mobile-toggle.active .close-icon {
    display: block;
}

.nav-mobile-menu {
    display: none;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
}

.nav-mobile-menu.active {
    display: block;
}

@media (min-width: 768px) {
    .nav-mobile-menu {
        display: none !important;
    }
}

.nav-mobile-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    transition: color var(--transition-base);
    font-size: 1rem;
    font-family: var(--font-sans);
}

.nav-mobile-link:hover {
    color: var(--primary);
}

.nav-mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-sans);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background-color: var(--muted);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover {
    background-color: var(--muted);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 2.5rem;
}

.btn-full {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('assets/hero-background.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay-1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        var(--background),
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.4)
    );
}

.hero-overlay-2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(66, 153, 225, 0.05),
        transparent,
        rgba(66, 153, 225, 0.05)
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 8rem 0;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-btn-primary {
    box-shadow: var(--shadow-xl);
    transition: box-shadow var(--transition-base);
}

.hero-btn-primary:hover {
    box-shadow: var(--shadow-2xl);
}

.hero-btn-outline {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.5);
    border-width: 2px;
    transition: all var(--transition-base);
}

.hero-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-icon {
    color: var(--primary);
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(to top, var(--background), transparent);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

.section-alt {
    background-color: rgba(220, 220, 228, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

.section-action {
    text-align: center;
    margin-top: 2rem;
}

/* Market Cards */
.markets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .markets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .markets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.market-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.market-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.market-card-loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.market-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.market-pulse.positive {
    background-color: #10b981;
}

.market-pulse.negative {
    background-color: #ef4444;
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.market-symbol {
    font-size: 1.125rem;
    font-weight: 700;
}

.market-name {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.market-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.market-change.positive {
    color: #10b981;
}

.market-change.negative {
    color: #ef4444;
}

.market-price {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.5rem;
}

.market-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-change-value {
    font-size: 0.875rem;
}

.market-change-value.positive {
    color: #10b981;
}

.market-change-value.negative {
    color: #ef4444;
}

.sparkline {
    opacity: 0.5;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.2), rgba(66, 153, 225, 0.05));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all var(--transition-base);
    color: var(--primary);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.3), rgba(66, 153, 225, 0.1));
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--muted-foreground);
}

/* Platform Section */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.platform-content {
    order: 1;
}

@media (min-width: 1024px) {
    .platform-content {
        order: 0;
    }
}

.platform-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .platform-title {
        font-size: 2.25rem;
    }
}

.platform-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.platform-features {
    list-style: none;
    margin-bottom: 2rem;
}

.platform-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.checkmark {
    color: var(--primary);
    flex-shrink: 0;
}

.platform-image-wrapper {
    position: relative;
}

.platform-image-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1), transparent);
    filter: blur(60px);
}

.platform-image-container {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-2xl);
    transition: all var(--transition-slow);
}

.platform-image-container:hover {
    transform: scale(1.02);
}

.platform-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Trust Cards */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
}

.trust-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.trust-icon-wrapper {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.2), rgba(66, 153, 225, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    transition: all var(--transition-base);
}

.trust-card:hover .trust-icon-wrapper {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.3), rgba(66, 153, 225, 0.1));
}

.trust-value {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.trust-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trust-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    color: #fbbf24;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg,
        rgba(66, 153, 225, 0.05),
        var(--background),
        rgba(66, 153, 225, 0.05)
    );
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 6rem 0;
    }
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.5), transparent);
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 56rem;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.cta-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.cta-check {
    color: var(--primary);
    background-color: rgba(66, 153, 225, 0.1);
    border-radius: 50%;
    padding: 0.25rem;
    flex-shrink: 0;
}

.cta-button {
    box-shadow: var(--shadow-xl);
    transition: box-shadow var(--transition-base);
}

.cta-button:hover {
    box-shadow: var(--shadow-2xl);
}

.cta-disclaimer {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background-color: rgba(220, 220, 228, 0.3);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .footer-brand {
        grid-column: span 1;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background: transparent;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    transition: all var(--transition-base);
}

.social-btn:hover {
    background-color: var(--muted);
}

.footer-links-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
}

.footer-legal-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-legal-link:hover {
    color: var(--primary);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 1s ease, transform 1s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Loading Skeleton */
.skeleton {
    background-color: var(--muted);
    border-radius: 0.25rem;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    width: 60%;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
