/* Fonts & Variables */
:root {
    --primary-color: #2F5496; /* Professional blue */
    --primary-dark: #1C3764; /* Darker blue */
    --primary-light: #5E7FB7; /* Lighter blue */
    --accent-color: #FF9800; /* Orange accent */
    --background-color: #f0f5f8; /* Light blue-grey */
    --text-color: #333333;
    --text-light: #555555;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(47, 84, 150, 0.08);
    --hover-shadow: 0 15px 35px rgba(47, 84, 150, 0.15);
    --nav-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --primary-rgb: 47, 84, 150;
    --paper-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    --hand-border: 2px solid rgba(47, 84, 150, 0.2);
    --sketch-border: 3px solid;
    --sketch-border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

/* Global Styles */
body.landing-page {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 30px 0;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.3;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--primary-gradient);
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-3px);
}

.btn-calculator {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    margin-top: 1rem;
}

.btn-calculator:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--hover-shadow);
    transform: translateY(-3px);
}

/* Enhanced Header */
.landing-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.landing-header.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.landing-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
}

.logo h1 span {
    color: var(--primary-light);
    position: relative;
}

.logo h1 span::after {
    content: '®';
    font-size: 0.7rem;
    position: absolute;
    top: 0;
    right: -15px;
}

/* Enhanced Navigation */
.landing-nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-nav a {
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.landing-nav a:not(.btn-primary) {
    color: var(--text-color);
}

.landing-nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.landing-nav a:not(.btn-primary):hover {
    color: var(--primary-color);
}

.landing-nav a:not(.btn-primary):hover::after {
    width: 100%;
}

/* Enhanced Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.5s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.theme-toggle:hover::before {
    transform: scale(1);
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

/* Add hamburger menu for mobile */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .landing-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        padding: 80px 20px 30px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .landing-nav.active {
        right: 0;
    }

    .landing-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .landing-nav a {
        display: block;
        width: 100%;
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
    }

    .landing-nav a.btn-primary {
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }
}

/* Hero Section */
.hero, .prices, .platform-info, .features, .spot-trading, .calculators, .faq, .cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-box {
    width: 100%;
    margin: 0 auto;
    padding: 60px;
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 1;
}

.hero .section-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white);
    position: relative;
}

.hero-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 4px;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.hero-image {
    flex: 1 1 450px;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

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

/* Spot Trading Section */
.spot-trading .section-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.spot-content {
    max-width: 600px;
}

.spot-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.spot-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Platform Info Section */
.platform-info .section-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.platform-content {
    flex: 1 1 450px;
}

.platform-content .label {
    display: inline-block;
    background-color: rgba(28, 89, 244, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.platform-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.platform-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.platform-illustration {
    flex: 1 1 450px;
    max-width: 600px;
}

.platform-illustration img {
    max-width: 100%;
    height: auto;
}

/* Prices Section */
.prices {
    padding: 0;
    background: var(--gradient);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.crypto-table {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-top: 2rem;
}

.table-header {
    background-color: var(--primary-color);
    padding: 15px 20px;
}

.table-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
}

.table-container {
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 15px 20px;
    text-align: left;
}

table th {
    font-weight: 600;
    color: var(--text-color);
    background-color: rgba(28, 89, 244, 0.05);
}

table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-info img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.coin-name {
    display: block;
    font-weight: 600;
}

.coin-code {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}

.positive {
    color: #00c853;
}

.negative {
    color: #f44336;
}

.coin-chart {
    display: flex;
    justify-content: center;
    align-items: center;
}

.calculator-icon-small {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Features Section */
.features {
    padding: 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(var(--primary-rgb), 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-gradient);
    transition: height 0.5s ease;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: var(--background-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
}

/* Calculators Section */
.calculators {
    padding: 0;
    background-color: var(--background-color);
}

.calculator-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.calculator-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(var(--primary-rgb), 0.05);
    position: relative;
    overflow: hidden;
}

.calculator-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent var(--primary-light) transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calculator-card:hover::after {
    opacity: 1;
}

.calculator-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

.calculator-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.calculator-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.calculator-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    flex-grow: 1;
}

.calculator-features {
    margin-bottom: 1.5rem;
}

.calculator-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.calculator-features li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* FAQ Section */
.faq {
    padding: 0;
    background-color: var(--white);
}

.faq-container {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border-radius: 12px;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15rem;
    transition: var(--transition);
}

.faq-question i {
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    padding: 0 25px;
}

.faq-answer p {
    padding: 0 0 25px;
    margin: 0;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: var(--background-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 1s ease-in-out;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* CTA Section */
.cta {
    padding: 0;
    text-align: center;
    background: var(--gradient);
    color: var(--white);
}

/* Footer */
.footer {
    padding: 100px 0 0;
    background-color: var(--primary-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 90%, rgba(94, 127, 183, 0.15) 0%, transparent 40%);
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    flex: 1 1 300px;
    max-width: 350px;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-logo h2 span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    flex: 1 1 600px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1 1 150px;
}

.footer-column h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto 0;
    padding: 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-media a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-media a:hover {
    color: var(--white);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container,
    .section-box,
    .footer-content,
    .footer-bottom {
        padding: 0 15px;
    }
    
    .section-box {
        padding: 30px;
    }
    
    .hero .section-box,
    .platform-info .section-box {
        flex-direction: column;
    }
    
    .hero-content, .hero-image,
    .platform-content, .platform-illustration {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .hero-image, .platform-illustration {
        order: -1;
        margin-bottom: 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container,
    .footer-content,
    .footer-bottom {
        padding: 0 15px;
    }
    
    .section-box {
        padding: 25px;
    }
    
    .hero, .prices, .platform-info, .features, .spot-trading, .calculators, .faq, .cta {
        padding: 60px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-logo {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-cards {
        grid-template-columns: 1fr;
    }
    
    .landing-header .container {
        padding: 0 20px;
    }
    
    .landing-nav ul {
        gap: 1rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container,
    .footer-content,
    .footer-bottom {
        padding: 0 10px;
    }
    
    .section-box {
        padding: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .quick-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .landing-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .landing-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
}

/* Dark Mode */
.dark-mode {
    --background-color: #0D1B32; /* Dark blue background */
    --text-color: #f5f5f5;
    --text-light: #b0b0b0;
    --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .landing-header {
    background-color: rgba(13, 27, 50, 0.95); /* Dark blue background */
}

.dark-mode .logo h1, 
.dark-mode .landing-nav a:not(.btn-primary),
.dark-mode .theme-toggle {
    color: var(--white);
}

.dark-mode .landing-nav a:not(.btn-primary)::after {
    background: var(--white);
}

.dark-mode .feature-card,
.dark-mode .calculator-card,
.dark-mode .faq-container,
.dark-mode .platform-info {
    background-color: var(--background-color);
}

.dark-mode .feature-card h3,
.dark-mode .calculator-card h3,
.dark-mode .faq-question h3,
.dark-mode .platform-content h2 {
    color: var(--white);
}

.dark-mode .feature-card p,
.dark-mode .calculator-card p,
.dark-mode .calculator-features li,
.dark-mode .faq-answer p,
.dark-mode .platform-content p {
    color: var(--text-light);
}

.dark-mode .faq-item.active .faq-question {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .btn-primary {
    background-color: var(--primary-light);
    color: var(--white);
}

.dark-mode .btn-primary:hover {
    background-color: var(--primary-dark);
}

.dark-mode .feature-icon {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.dark-mode table td {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.dark-mode .crypto-table, 
.dark-mode .table-container {
    background-color: var(--background-color);
}

/* Quick Stats Styles */
.quick-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-align: center;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: float-icon 5s ease-in-out infinite;
    z-index: 1;
}

.icon-1 {
    top: 20%;
    left: -5%;
    background: var(--primary-dark);
}

.icon-2 {
    bottom: 25%;
    right: -5%;
    background: var(--primary-light);
}

.icon-3 {
    bottom: 10%;
    left: 15%;
    background: var(--accent-color);
}

@keyframes float-icon {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.badge i {
    font-size: 1rem;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-light);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Live price animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.coin-price.updated {
    animation: pulse 0.5s ease-in-out;
}

/* Responsive adjustments for new elements */
@media (max-width: 992px) {
    .quick-stats {
        justify-content: center;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .trust-badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .quick-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat {
        min-width: 120px;
    }
    
    .floating-icon.icon-1 {
        top: 10%;
        left: 0;
    }
    
    .floating-icon.icon-2 {
        bottom: 20%;
        right: 0;
    }
    
    .floating-icon.icon-3 {
        bottom: 5%;
        left: 10%;
    }
}

@media (max-width: 576px) {
    .stat {
        min-width: 100px;
        padding: 10px 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .theme-switcher {
        margin-top: 1rem;
    }
}

/* Dark mode adjustments */
.dark-mode .stat {
    background-color: rgba(0, 0, 0, 0.2);
}

.dark-mode .badge {
    background-color: rgba(0, 0, 0, 0.2);
}

.dark-mode .slider {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Add financial-specific elements */
.calculator-result {
    background-color: #f0f7f8;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.dark-mode .calculator-result {
    background-color: rgba(0, 54, 58, 0.7);
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(47, 84, 150, 0.1);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 500;
}

.result-value {
    font-weight: 700;
    color: var(--primary-color);
}

.dark-mode .result-value {
    color: var(--primary-light);
}

/* Sliders for calculators */
.calculator-slider {
    width: 100%;
    margin: 15px 0;
}

.slider-container {
    margin-bottom: 20px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.slider-label {
    font-weight: 500;
}

.slider-value {
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(94, 127, 183, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
}

.dark-mode .slider-value {
    background: rgba(94, 127, 183, 0.2);
    color: var(--primary-light);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--primary-light) 0%, var(--primary-color) 100%);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Amortization table */
.amortization-table {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.amortization-table table {
    min-width: 600px;
}

.amortization-table th {
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    color: var(--white);
    z-index: 10;
}

.toggle-amortization {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: var(--transition);
}

.toggle-amortization:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.dark-mode .toggle-amortization {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.dark-mode .toggle-amortization:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

/* Updated responsive styles */
@media (max-width: 992px) {
    .slider-container {
        padding: 0 10px;
    }
    
    .calculator-result {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .result-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .amortization-table {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .slider-value {
        align-self: flex-end;
    }
}

/* Add after Global Styles section */
.section-box {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin: 40px 0;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

/* Fix for gradient sections */
.hero .section-box,
.cta .section-box,
.prices .section-box {
    background: var(--primary-color);
    color: var(--white);
}

/* Adjust section headers in boxed layout */
.section-header {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 2rem;
}

/* Fix for the faq container */
.faq-container {
    box-shadow: none;
    border-radius: 0;
    margin-top: 30px;
}

/* Header fixes for the boxed layout */
.landing-header {
    z-index: 1001;
}

/* Adjust background for specific sections */
.platform-info .section-box {
    background-color: var(--white);
}

.features .section-box {
    background-color: var(--white);
}

.spot-trading .section-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
}

/* Adjust footer for boxed layout */
.footer {
    background-color: var(--primary-dark);
    border-radius: var(--border-radius);
    margin-top: 40px;
    padding-bottom: 20px;
}

/* Fix floating icons position in boxed layout */
.floating-icon {
    position: absolute;
    z-index: 2;
}

.hero .floating-icon.icon-1 {
    top: 15%;
    left: 5%;
}

.hero .floating-icon.icon-2 {
    bottom: 15%;
    right: 5%;
}

.hero .floating-icon.icon-3 {
    bottom: 10%;
    left: 15%;
}

/* Fix table styles for boxed layout */
.table-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Fix gradient sections in dark mode */
.dark-mode .section-box {
    background-color: var(--background-color);
}

.dark-mode .hero .section-box,
.dark-mode .prices .section-box,
.dark-mode .cta .section-box {
    background: var(--primary-color);
}

.dark-mode .platform-info .section-box,
.dark-mode .features .section-box,
.dark-mode .faq .section-box {
    background-color: var(--background-color);
}

/* Set up consistent section spacing */
section {
    position: relative;
}

section:not(:first-child) {
    margin-top: 20px;
}

/* Wave divider between sections */
.wave-divider {
    position: relative;
    height: 80px;
    width: 100%;
    margin-top: -1px;
    z-index: 1;
}

.wave-divider svg {
    position: absolute;
    width: 100%;
    height: 100%;
    fill: var(--white);
}

/* Enhanced section backgrounds */
.hero {
    background-image: 
        radial-gradient(circle at 15% 75%, rgba(94, 127, 183, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(255, 152, 0, 0.1) 0%, transparent 45%);
}

.calculators {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(94, 127, 183, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 95% 85%, rgba(94, 127, 183, 0.08) 0%, transparent 35%);
}

/* Feature badges */
.feature-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced card styles */
.feature-card, .calculator-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mouse trail effect */
.mouse-trail {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.15);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

/* Enhanced section titles with gradient text */
.section-title-gradient {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
    text-align: center;
    position: relative;
}

/* Enhanced card hover */
.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(var(--primary-rgb), 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pricing-card::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: var(--primary-gradient);
    bottom: -200%;
    left: -50%;
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.pricing-card:hover::before {
    bottom: -70%;
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
    color: var(--white);
}

/* Gradient border for cards */
.gradient-border-card {
    border: 2px solid transparent;
    background-image: 
        linear-gradient(white, white), 
        var(--primary-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: var(--transition);
}

.gradient-border-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

/* Stats counter with animation */
.counter-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 0;
}

.counter-item {
    text-align: center;
    padding: 20px;
}

.counter-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-flex;
    position: relative;
}

.counter-value::after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    top: 5px;
    right: -20px;
}

.counter-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* Floating data points */
.data-point {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.5;
    z-index: 0;
    animation: floatAround 15s infinite linear;
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.2);
    }
    50% {
        transform: translate(100px, 0) scale(1);
    }
    75% {
        transform: translate(50px, 30px) scale(0.8);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Enhanced tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform-origin: bottom center;
    transform: translateX(-50%) scale(0.8);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--primary-dark) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Dark mode enhancements */
.dark-mode .landing-header {
    background-color: rgba(13, 27, 50, 0.95);
}

.dark-mode .landing-header.scrolled {
    background-color: rgba(13, 27, 50, 0.98);
}

.dark-mode .wave-divider svg {
    fill: var(--background-color);
}

.dark-mode .data-point {
    background: var(--primary-light);
    opacity: 0.3;
}

.calculator-link {
    color: #2F5496;
    text-decoration: none;
    transition: color 0.3s ease;
}

.calculator-link:hover {
    color: #1a4189;
}

.calculator-link .calculator-icon-small {
    transition: transform 0.3s ease;
}

.calculator-link:hover .calculator-icon-small {
    transform: translateX(5px);
} 