/* CSS Variables for Theme */
:root {
    --bitcoin-orange: #F7931A;
    --black-onyx: #1C2526;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-medium: #6C757D;
    --gradient-primary: linear-gradient(135deg, #F7931A 0%, #FF6B35 100%);
    --gradient-dark: linear-gradient(135deg, #1C2526 0%, #2C3E50 100%);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--black-onyx);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(28, 37, 38, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--black-onyx);
    text-decoration: none;
}

.bitcoin-symbol {
    color: var(--bitcoin-orange);
    font-size: 1.5em;
    margin-right: 0.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--black-onyx);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--bitcoin-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--black-onyx);
    margin: 3px 0;
    transition: var(--transition);
}

/* Buttons */
.primary-button, .secondary-button, .cta-button {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
}

.primary-button {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.secondary-button {
    background: transparent;
    color: var(--black-onyx);
    border: 2px solid var(--black-onyx);
}

.secondary-button:hover {
    background: var(--black-onyx);
    color: var(--white);
}

.cta-button {
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.9rem;
}

.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Page Hero */
.page-hero {
    padding: 120px 0 60px;
    background: var(--gradient-dark);
    color: var(--white);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Mockup */
.card-mockup {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.card-front {
    width: 350px;
    height: 220px;
    background: var(--gradient-dark);
    border-radius: 20px;
    padding: 2rem;
    color: var(--white);
    position: relative;
    box-shadow: var(--shadow-heavy);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: var(--transition);
}

.card-front:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 6px;
    margin-bottom: 2rem;
}

.card-logo {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--bitcoin-orange);
}

.card-number {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.card-holder {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.security-icon { color: var(--bitcoin-orange); }
.rewards-icon { color: var(--bitcoin-orange); }
.integration-icon { color: var(--bitcoin-orange); }

/* Security Section */
.security {
    padding: 80px 0;
    background: var(--gray-light);
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.security-features {
    list-style: none;
    margin-top: 2rem;
}

.security-features li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.security-visual {
    display: flex;
    justify-content: center;
}

.security-shield {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    box-shadow: var(--shadow-heavy);
}

/* Rewards Section */
.rewards {
    padding: 80px 0;
    background: var(--white);
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reward-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.reward-card.featured {
    border-color: var(--bitcoin-orange);
    transform: scale(1.05);
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.reward-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.reward-percentage {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
    margin: 1rem 0;
}

/* Trends Specific Styles */
.trends-overview {
    padding: 80px 0;
    background: var(--white);
}

.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.trend-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--bitcoin-orange);
}

.trend-card.featured {
    background: var(--gradient-primary);
    color: var(--white);
    border-left-color: var(--white);
}

.trend-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.trend-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
    margin-bottom: 1rem;
}

.trend-card.featured .trend-number {
    color: var(--white);
}

.trend-impact {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.impact-label {
    font-weight: 600;
}

.impact-value {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.impact-value.high {
    background: var(--bitcoin-orange);
    color: var(--white);
}

.impact-value.medium {
    background: var(--gray-medium);
    color: var(--white);
}

/* Market Predictions */
.market-predictions {
    padding: 80px 0;
    background: var(--gray-light);
}

.predictions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.prediction-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-change.positive {
    color: #28a745;
}

.insights-list {
    list-style: none;
    margin-top: 1rem;
}

.insights-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(28, 37, 38, 0.1);
}

/* Technology Evolution */
.tech-evolution {
    padding: 80px 0;
    background: var(--white);
}

.evolution-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.evolution-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--bitcoin-orange);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--white);
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    width: 45%;
    transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.timeline-content h4 {
    color: var(--bitcoin-orange);
    margin-bottom: 0.5rem;
}

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background: var(--white);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 800px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(28, 37, 38, 0.1);
}

.comparison-table th {
    background: var(--gray-light);
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
}

.feature-column {
    text-align: left;
    font-weight: 600;
    background: var(--white);
    position: sticky;
    left: 0;
    z-index: 5;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.featured-column {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    position: relative;
}

.featured-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.card-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.card-badge {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.our-value {
    font-weight: 600;
    color: var(--bitcoin-orange);
}

.competitor-value {
    color: var(--gray-medium);
}

/* Feature Breakdown */
.feature-breakdown {
    padding: 80px 0;
    background: var(--gray-light);
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.breakdown-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.breakdown-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.breakdown-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.breakdown-features {
    list-style: none;
    margin-top: 1rem;
}

.breakdown-features li {
    padding: 0.5rem 0;
    color: var(--gray-medium);
    position: relative;
    padding-left: 1.5rem;
}

.breakdown-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bitcoin-orange);
    font-weight: bold;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--bitcoin-orange);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 600;
    color: var(--black-onyx);
}

.author-title {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

.testimonial-rating {
    color: var(--bitcoin-orange);
}

/* Comparison Summary */
.comparison-summary {
    padding: 80px 0;
    background: var(--gradient-dark);
    color: var(--white);
    text-align: center;
}

.summary-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.summary-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.summary-stat {
    text-align: center;
}

.summary-stat .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
    margin-bottom: 0.5rem;
}

.summary-stat .stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta .primary-button {
    background: var(--white);
    color: var(--bitcoin-orange);
    font-size: 1.1rem;
    padding: 16px 32px;
}

.cta .primary-button:hover {
    background: var(--gray-light);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--black-onyx);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--bitcoin-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Privacy Badge */
.privacy-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    background: var(--gray-light);
    color: var(--black-onyx);
    margin-top: 0.5rem;
    cursor: help;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--black-onyx);
        margin: 3px 0;
        transition: var(--transition);
        transform-origin: center;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-menu.mobile-active {
        right: 0;
    }

    .nav-menu .nav-link {
        margin: 1rem 0;
        font-size: 1.2rem;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(28, 37, 38, 0.1);
    }

    .nav-menu .cta-button {
        margin-top: 2rem;
        width: 100%;
        justify-content: center;
    }

    .body.menu-open {
        overflow: hidden;
    }

    /* Timeline Mobile Fix */
    .evolution-timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
    }

    .timeline-content {
        width: 90% !important;
        margin: 0 auto !important;
    }
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Button Ripple Effect */
.primary-button, .secondary-button, .cta-button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Scroll Animations */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comparison Table Hover Effects */
.comparison-table tbody tr {
    transition: var(--transition);
}

.comparison-table tbody tr:hover {
    background-color: rgba(247, 147, 26, 0.05);
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.primary-button:focus,
.secondary-button:focus,
.cta-button:focus {
    outline: 2px solid var(--bitcoin-orange);
    outline-offset: 2px;
}

/* Loading States */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Grid Improvements */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .security-content,
    .predictions-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-table-wrapper {
        overflow-x: auto;
    }

    .comparison-table {
        min-width: 600px;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .trends-grid,
    .features-grid,
    .rewards-grid,
    .breakdown-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        width: 100%;
    }

    .card-front {
        width: 300px;
        height: 190px;
        padding: 1.5rem;
    }

    .card-number {
        font-size: 1.2rem;
    }

    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .cta,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .page-hero,
    .hero {
        padding: 20px 0;
        background: #fff !important;
        color: #000 !important;
    }

    .gradient-text {
        -webkit-text-fill-color: #000 !important;
        background: none !important;
    }

    .card-front {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .comparison-table {
        font-size: 10pt;
    }

    .trend-card,
    .feature-card,
    .breakdown-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --bitcoin-orange: #FF4500;
        --black-onyx: #000000;
        --gray-medium: #333333;
        --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.5);
    }

    .nav-link::after {
        height: 3px;
    }

    .comparison-table th,
    .comparison-table td {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .card-front {
        transform: none !important;
    }

    .feature-card:hover,
    .trend-card:hover,
    .breakdown-card:hover {
        transform: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --black-onyx: #ffffff;
        --gray-light: #2d2d2d;
        --gray-medium: #b0b0b0;
    }

    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .navbar {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .feature-card,
    .trend-card,
    .breakdown-card,
    .testimonial-card,
    .stat-card {
        background: #2d2d2d;
        color: #ffffff;
    }

    .comparison-table {
        background: #2d2d2d;
        color: #ffffff;
    }

    .comparison-table th {
        background: #3d3d3d;
    }

    .mobile-menu-toggle span {
        background: #ffffff;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--bitcoin-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6830f;
}

/* Selection Styles */
::selection {
    background: var(--bitcoin-orange);
    color: var(--white);
}

::-moz-selection {
    background: var(--bitcoin-orange);
    color: var(--white);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Error States */
.error {
    color: #dc3545;
    border-color: #dc3545;
}

.success {
    color: #28a745;
    border-color: #28a745;
}

.warning {
    color: #ffc107;
    border-color: #ffc107;
}

.info {
    color: #17a2b8;
    border-color: #17a2b8;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--black-onyx);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(28, 37, 38, 0.2);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--black-onyx);
}

.form-input:focus {
    outline: none;
    border-color: var(--bitcoin-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.form-input.error {
    border-color: #dc3545;
}

.form-input.success {
    border-color: #28a745;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--black-onyx);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1001;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--black-onyx) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
}

.badge-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.badge-secondary {
    background: var(--gray-medium);
    color: var(--white);
}

.badge-success {
    background: #28a745;
    color: var(--white);
}

.badge-warning {
    background: #ffc107;
    color: var(--black-onyx);
}

.badge-danger {
    background: #dc3545;
    color: var(--white);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}
// Bitcoin Credit Card Website - Main JavaScript File
document.addEventListener('DOMContentLoaded', function() {
    
    // ===== MOBILE NAVIGATION =====
    const mobileMenuToggle = document.querySelector('.mobile-menu-toggle');
    const navMenu = document.querySelector('.nav-menu');
    const navLinks = document.querySelectorAll('.nav-link');
    const body = document.body;

    if (mobileMenuToggle && navMenu) {
        mobileMenuToggle.addEventListener('click', function() {
            navMenu.classList.toggle('mobile-active');
            mobileMenuToggle.classList.toggle('active');
            body.classList.toggle('menu-open');
        });

        // Close mobile menu when clicking on a link
        navLinks.forEach(link => {
            link.addEventListener('click', function() {
                navMenu.classList.remove('mobile-active');
                mobileMenuToggle.classList.remove('active');
                body.classList.remove('menu-open');
            });
        });

        // Close mobile menu when clicking outside
        document.addEventListener('click', function(e) {
            if (!navMenu.contains(e.target) && !mobileMenuToggle.contains(e.target)) {
                navMenu.classList.remove('mobile-active');
                mobileMenuToggle.classList.remove('active');
                body.classList.remove('menu-open');
            }
        });
    }

    // ===== SMOOTH SCROLLING =====
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function (e) {
            e.preventDefault();
            const target = document.querySelector(this.getAttribute('href'));
            if (target) {
                const offsetTop = target.offsetTop - 80; // Account for fixed navbar
                window.scrollTo({
                    top: offsetTop,
                    behavior: 'smooth'
                });
            }
        });
    });

    // ===== NAVBAR SCROLL EFFECTS =====
    const navbar = document.querySelector('.navbar');
    let lastScrollTop = 0;

    window.addEventListener('scroll', function() {
        const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
        
        // Add scrolled class for styling
        if (scrollTop > 50) {
            navbar.classList.add('scrolled');
        } else {
            navbar.classList.remove('scrolled');
        }

        lastScrollTop = scrollTop;
    });

    // ===== ACTIVE NAVIGATION HIGHLIGHTING =====
    function updateActiveNavigation() {
        const sections = document.querySelectorAll('section[id]');
        const navLinks = document.querySelectorAll('.nav-link[href^="#"]');
        
        let currentSection = '';
        sections.forEach(section => {
            const sectionTop = section.offsetTop - 100;
            const sectionHeight = section.offsetHeight;
            if (window.scrollY >= sectionTop && window.scrollY < sectionTop + sectionHeight) {
                currentSection = section.getAttribute('id');
            }
        });

        navLinks.forEach(link => {
            link.classList.remove('active');
            if (link.getAttribute('href') === `#${currentSection}`) {
                link.classList.add('active');
            }
        });
    }

    // Only run on pages with sections
    const sections = document.querySelectorAll('section[id]');
    if (sections.length > 0) {
        window.addEventListener('scroll', updateActiveNavigation);
        updateActiveNavigation(); // Run once on load
    }

    // ===== PAGE-SPECIFIC ACTIVE NAVIGATION =====
    function setActivePageNavigation() {
        const currentPage = window.location.pathname.split('/').pop() || 'index.html';
        const navLinks = document.querySelectorAll('.nav-link');
        
        navLinks.forEach(link => {
            link.classList.remove('active');
            const linkHref = link.getAttribute('href');
            
            // Handle different page scenarios
            if ((currentPage === 'index.html' || currentPage === '') && 
                (linkHref === 'index.html' || linkHref === '/' || linkHref.startsWith('#'))) {
                link.classList.add('active');
            } else if (linkHref === currentPage) {
                link.classList.add('active');
            }
        });
    }

    setActivePageNavigation();

    // ===== INTERACTIVE CARD EFFECTS =====
    const cards = document.querySelectorAll('.feature-card, .trend-card, .reward-card, .breakdown-card, .testimonial-card, .quick-card');
    
    cards.forEach(card => {
        card.addEventListener('mouseenter', function() {
            this.style.transform = 'translateY(-8px)';
            this.style.transition = 'all 0.3s cubic-bezier(0.4, 0, 0.2, 1)';
        });
        
        card.addEventListener('mouseleave', function() {
            this.style.transform = 'translateY(0)';
        });
    });

    // ===== COMPARISON TABLE INTERACTIONS =====
    const comparisonTable = document.querySelector('.comparison-table');
    if (comparisonTable) {
        const rows = comparisonTable.querySelectorAll('tbody tr');
        
        rows.forEach(row => {
            row.addEventListener('mouseenter', function() {
                this.style.backgroundColor = 'rgba(247, 147, 26, 0.05)';
            });
            
            row.addEventListener('mouseleave', function() {
                this.style.backgroundColor = '';
            });
        });
    }

    // ===== BUTTON INTERACTIONS =====
    const buttons = document.querySelectorAll('.primary-button, .secondary-button, .cta-button');
    
    buttons.forEach(button => {
        button.addEventListener('click', function(e) {
            // Add ripple effect
            const ripple = document.createElement('span');
            const rect = this.getBoundingClientRect();
            const size = Math.max(rect.width, rect.height);
            const x = e.clientX - rect.left - size / 2;
            const y = e.clientY - rect.top - size / 2;
            
            ripple.style.width = ripple.style.height = size + 'px';
            ripple.style.left = x + 'px';
            ripple.style.top = y + 'px';
            ripple.classList.add('ripple');
            
            this.appendChild(ripple);
            
            setTimeout(() => {
                ripple.remove();
            }, 600);
        });
    });

    // ===== SCROLL ANIMATIONS =====
    const observerOptions = {
        threshold: 0.1,
        rootMargin: '0px 0px -50px 0px'
    };

    const observer = new IntersectionObserver(function(entries) {
        entries.forEach(entry => {
            if (entry.isIntersecting) {
                entry.target.classList.add('animate-in');
            }
        });
    }, observerOptions);

    // Observe elements for animation
    const animateElements = document.querySelectorAll('.feature-card, .trend-card, .reward-card, .breakdown-card, .stat-card, .quick-card');
    animateElements.forEach(el => {
        observer.observe(el);
    });

    // ===== FORM HANDLING =====
    const forms = document.querySelectorAll('form');
    forms.forEach(form => {
        form.addEventListener('submit', function(e) {
            e.preventDefault();
            
            // Add loading state
            const submitButton = this.querySelector('button[type="submit"]');
            if (submitButton) {
                const originalText = submitButton.textContent;
                submitButton.textContent = 'Processing...';
                submitButton.disabled = true;
                
                // Simulate form processing
                setTimeout(() => {
                    submitButton.textContent = originalText;
                    submitButton.disabled = false;
                    alert('Thank you for your interest! We\'ll be in touch soon.');
                }, 2000);
            }
        });
    });

    // ===== PERFORMANCE OPTIMIZATIONS =====
    // Debounce scroll events
    function debounce(func, wait) {
        let timeout;
        return function executedFunction(...args) {
            const later = () => {
                clearTimeout(timeout);
                func(...args);
            };
            clearTimeout(timeout);
            timeout = setTimeout(later, wait);
        };
    }

    // Apply debouncing to scroll events if sections exist
    if (sections.length > 0) {
        const debouncedScrollHandler = debounce(updateActiveNavigation, 10);
        window.addEventListener('scroll', debouncedScrollHandler);
    }

    // ===== ACCESSIBILITY IMPROVEMENTS =====
    // Keyboard navigation for mobile menu
    if (mobileMenuToggle) {
        mobileMenuToggle.addEventListener('keydown', function(e) {
            if (e.key === 'Enter' || e.key === ' ') {
                e.preventDefault();
                this.click();
            }
        });
    }

    // Focus management for mobile menu
    navLinks.forEach((link, index) => {
        link.addEventListener('keydown', function(e) {
            if (e.key === 'Tab' && navMenu.classList.contains('mobile-active')) {
                if (e.shiftKey && index === 0) {
                    e.preventDefault();
                    mobileMenuToggle.focus();
                } else if (!e.shiftKey && index === navLinks.length - 1) {
                    e.preventDefault();
                    mobileMenuToggle.focus();
                }
            }
        });
    });

    // ===== PRIVACY BADGE RENDERING =====
    function renderPrivacyBadge(element) {
        const custody = element.dataset.custody === 'true';
        const kyc = element.dataset.kyc === 'true';
        
        let text = '';
        let title = '';
        
        if (kyc) {
            text = '🔒 KYC Required';
        } else {
            text = '🛡️ Non-KYC';
        }
        
        title = custody ? 'Custodial (issuer holds keys)' : 'Non-Custodial (you control keys)';
        
        element.innerHTML = text;
        element.setAttribute('title', title);
        element.setAttribute('aria-label', title);
    }

    // Render all privacy badges on page
    const privacyBadges = document.querySelectorAll('.privacy-badge');
    privacyBadges.forEach(badge => {
        renderPrivacyBadge(badge);
    });

    // ===== COMPARISON FILTER TOGGLES =====
    const filterButtons = document.querySelectorAll('.filter-button');
    const quickCards = document.querySelectorAll('.quick-card');
    const tableHeaders = document.querySelectorAll('.comparison-table th:not(.feature-column)');
    const tableRows = document.querySelectorAll('.comparison-table tbody tr');

    if (filterButtons.length > 0) {
        filterButtons.forEach(button => {
            button.addEventListener('click', function() {
                filterButtons.forEach(btn => btn.classList.remove('active'));
                this.classList.add('active');
                
                const filter = this.textContent.toLowerCase();
                
                // Simple filter logic - highlight or show based on filter
                // For demo, we'll add a class to highlight columns
                // In production, map filters to columns
                
                tableHeaders.forEach((header, index) => {
                    header.classList.remove('highlighted');
                    if (filter === 'all cards') {
                        header.style.display = '';
                    } else if (filter === 'best rewards' && index === 0) { // Assuming first is recommended
                        header.classList.add('highlighted');
                    } // Add more logic for other filters
                });
                
                tableRows.forEach(row => {
                    row.querySelectorAll('td:not(:first-child)').forEach((cell, index) => {
                        cell.classList.remove('highlighted');
                        if (filter === 'all cards') {
                            cell.style.display = '';
                        } else if (filter === 'best rewards' && index === 0) {
                            cell.classList.add('highlighted');
                        }
                    });
                });
            });
        });
    }

    console.log('TheBitcoinCreditCard.com - JavaScript loaded successfully! 🚀');
});