:root {
    --brand-gradient: linear-gradient(135deg, #ff1744 0%, #e91e63 25%, #9c27b0 50%, #673ab7 75%, #2196f3 100%);
    --button-gradient: linear-gradient(135deg, #ff1744, #2196f3);
    --dark-bg: #121212;
    --alt-bg: #0a0a0a;
    --card-bg: rgba(26, 26, 26, 0.7);
    --border-color: rgba(255, 255, 255, 0.05);
    --semi-transparent-bg: rgba(18, 18, 18, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--dark-bg);
    color: #f0f0f0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.pixel-font {
    font-family: 'Pixelify Sans', sans-serif;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #222;
}
::-webkit-scrollbar-thumb {
    background: var(--button-gradient);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff3d6a, #4dabf5);
}

.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--semi-transparent-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-combined-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    align-items: center;
}

.logo-text-main {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.logo-text-sub {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #ccc;
    white-space: nowrap;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo-container:hover .logo-text-main {
    animation: pulse 2.5s infinite;
}

.nav-right-desktop {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 4px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--button-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-links a:hover {
    color: #eee;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.launch-button {
    font-family: 'Pixelify Sans', sans-serif;
    background: var(--button-gradient);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.2);
    transition: all 0.3s ease;
}

.launch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
    animation: pulse 2.5s infinite;
}

.burger-menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1010;
}

.burger-menu-icon .bar {
    width: 28px;
    height: 3px;
    background: var(--brand-gradient); 
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--semi-transparent-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 73px);
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.launch-button-mobile {
    display: block;
    text-align: center;
    font-family: 'Pixelify Sans', sans-serif;
    background: var(--button-gradient);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.2);
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}
.launch-button-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
    background: var(--button-gradient);
}

.hero-section {
    min-height: calc(100vh - 73px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

.hero-text {
    flex: 1;
    max-width: 100%; 
}

.hero-description {
    font-size: 1.5rem;
    color: #e0e0e0;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.hero-image-container {
    flex: 1;
    max-width: 100%; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-socials {
    margin-top: 2rem;
}
.social-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--dark-bg), var(--dark-bg)), var(--brand-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}
.social-button .icon-x {
    width: 20px;
    height: 20px;
    fill: #fff;
    transition: fill 0.3s ease;
}
.social-button:hover {
    background-image: var(--brand-gradient), var(--brand-gradient);
    background-clip: padding-box, border-box;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.powered-by-text {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 1.2rem;
    color: #bbb;
    white-space: nowrap;
}
.pulsechain-wordmark {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.pulsechain-wordmark:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 12px rgba(33, 150, 243, 0.8));
}

.section {
    padding: 5rem 0;
}

.section.alt-bg {
    background-color: var(--alt-bg);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3.5rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-grid.two-cols-special {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    fill: url(#icon-gradient);
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.feature-card p, .feature-card li {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}
.feature-card strong {
    color: #fff;
}

.feature-card .small-text {
    font-size: 0.9rem;
    color: #999;
    margin-top: 1rem;
}

.feature-card ul {
    margin-top: 1rem;
    padding-left: 1.25rem;
}

.feature-card li {
    margin-bottom: 0.5rem;
}

.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}
.tooltip-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}
.tooltip-icon:hover {
    color: #fff;
}
.tooltip-content {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #2a2a2a;
    color: #eee;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    width: 280px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    font-family: Arial, sans-serif;
    font-weight: normal;
}
.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #2a2a2a transparent transparent transparent;
}
.tooltip-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.calculation-section {
    margin-top: 4rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
}
.calculation-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.calc-card {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.calc-card h4 {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.calc-card p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.calc-card p.math-line {
    border-left: 2px solid var(--border-color);
    padding-left: 10px;
    margin-left: 5px;
}
.calc-card p strong {
    color: #fff;
    font-weight: bold;
}
.calc-card .subtext {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-top: 1rem;
}
.calc-card ul {
    padding-left: 1.25rem;
    color: #ccc;
    font-size: 1rem;
}
.calc-card li {
    margin-bottom: 0.5rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-subtitle {
    font-size: 1.75rem;
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.faq-subtitle:first-of-type {
    margin-top: 0;
}

.faq-item details {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: background-color 0.3s;
}
.faq-item details:hover {
    background-color: rgba(30,30,30,0.7);
}

.faq-item summary {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: #fff;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #ccc;
}

.faq-item details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item details[open] summary {
    color: #eee;
}

.faq-item .faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #ccc;
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
}

.faq-item .faq-content p, .faq-item .faq-content ul, .faq-item .faq-content ol {
    margin-top: 1rem;
}

.faq-item .faq-content li {
    margin-bottom: 0.5rem;
    margin-left: 1.25rem;
}
.faq-item .faq-content strong {
    color: #fff;
}

.glossary-item {
    margin-top: 1rem;
}
.glossary-item p {
    color: #ccc;
}
.glossary-item p strong {
    color: #fff;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 1.1rem;
}

#disclaimers .disclaimer-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}
#disclaimers .disclaimer-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}
#disclaimers .disclaimer-box p {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 1rem;
}
#disclaimers .disclaimer-box p:last-of-type {
    margin-bottom: 0;
}

.main-footer {
    padding: 0;
    color: #777;
    font-size: 0.9rem;
    background-color: var(--alt-bg);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}
.footer-socials {
    display: flex;
    gap: 1rem;
}
.footer-socials a {
    color: #999;
    transition: color 0.3s ease;
}
.footer-socials a:hover {
    color: #fff;
}
.footer-socials .icon-x {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.click-pixel {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    
    --dest-x: 0px;
    --dest-y: 0px;
    
    animation: pixel-explode 1s forwards ease-out;
}

@keyframes pixel-explode {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dest-x), var(--dest-y)) scale(0);
    }
}


@media (max-width: 992px) {
    .nav-right-desktop {
        display: none;
    }
    .burger-menu-icon {
        display: flex;
    }

    .burger-menu-icon.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu-icon.active .bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu-icon.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }

    .logo-container {
        gap: 10px;
    }
    .logo-img {
        height: 35px;
    }
    .logo-text-main {
        font-size: 1.2rem;
    }
    .logo-text-sub {
        font-size: 0.7rem;
    }

    .logo-text-main,
    .logo-text-sub {
        white-space: normal;
        text-align: center;
    }

    .section {
        padding: 3.5rem 0;
    }
    .section-title {
        font-size: 2.25rem;
        margin-bottom: 2.5rem;
    }
    .feature-card {
        padding: 2rem 1.5rem;
    }
    .feature-card h3 {
        font-size: 1.5rem;
    }
    
    .tooltip-content {
        width: 240px;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }
    .tooltip-content.active {
        transform: translateX(-50%) translateY(0);
    }

    .faq-item summary {
        font-size: 1.1rem;
    }
    .calculation-section {
        padding: 2rem 1.5rem;
    }
    .calculation-section h3 {
        font-size: 1.75rem;
    }
    .feature-grid.two-cols-special {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-socials {
        order: -1;
    }
    
    .powered-by {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    .powered-by-text {
        font-size: 1.1rem;
    }
    .pulsechain-wordmark {
        height: 25px;
    }
}

@media (max-width: 480px) {
    .powered-by {
        flex-direction: column;
        gap: 5px;
    }
    .powered-by-text {
        font-size: 1rem;
    }
    .pulsechain-wordmark {
        height: 22px;
    }
}