/* Global Styles */
:root {
    --primary-dark: #0a1f3d;
    --primary-mid: #1a73e8;
    --primary-light: #00c6fb;
    --accent: #00f2c3;
    --text-light: #ffffff;
    --text-dark: #333333;
    --card-bg: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid), var(--primary-light));
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Particles Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

/* Header & Navigation */
header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav.desktop-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav.desktop-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

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

nav.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(10, 31, 61, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: right 0.3s ease;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

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

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.close-mobile-menu {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 30px 0 150px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(to right, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background: linear-gradient(to right, var(--accent), var(--primary-light));
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 242, 195, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 242, 195, 0.4);
}

.secondary-btn {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.onchain-coin {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    /* background: url('imgs/onchain2.png') center/contain no-repeat; */
    animation: float 6s ease-in-out infinite;
}

.onchain-coin img {
    width: 350%;
    height: 350%;
    margin-left: -100px;
    margin-top: -10px;
    /* background: url('imgs/onchain2.png') center/contain no-repeat; */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Services Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

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

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 195, 0.1) 0%, transparent 70%);
    transform: rotate(30deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 242, 195, 0.3);
}

.service-card:hover::before {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(30deg) translate(-10%, -10%);
    }

    100% {
        transform: rotate(30deg) translate(10%, 10%);
    }
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.ton-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: url('https://ton.org/download/ton_symbol.svg') center/contain no-repeat;
    opacity: 0.7;
}

/* Value Proposition Section */
.value-prop {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.value-prop-image {
    flex: 1;
    position: relative;
}

.blockchain-visual {
    width: 100%;
    height: 400px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="none" stroke="%2300f2c3" stroke-width="2"/><circle cx="100" cy="40" r="8" fill="%2300f2c3"/><circle cx="160" cy="100" r="8" fill="%2300f2c3"/><circle cx="100" cy="160" r="8" fill="%2300f2c3"/><circle cx="40" cy="100" r="8" fill="%2300f2c3"/><path d="M100,40 L100,160 M40,100 L160,100" stroke="%2300f2c3" stroke-width="1" stroke-dasharray="5,5"/></svg>') center/contain no-repeat;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.value-prop-content {
    flex: 1;
}

.value-prop-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.benefit-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.benefit-icon {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 3px;
}

/* How It Works Section */
.steps-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.progress-line {
    position: absolute;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    top: 30px;
    left: 0;
    z-index: 0;
}

.progress-line::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 1s ease;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-dark);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.step.active .step-circle {
    border-color: var(--accent);
    background: rgba(0, 242, 195, 0.1);
    transform: scale(1.1);
}

.step-circle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.step.active .step-circle::after {
    opacity: 1;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.step-text {
    text-align: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.step.active .step-text {
    opacity: 1;
    font-weight: 500;
}

.step-content {
    margin-top: 50px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Final CTA Section */
.final-cta {
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.final-cta p {
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

.glow-btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    background: linear-gradient(to right, var(--accent), var(--primary-light));
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 242, 195, 0.3);
    transition: all 0.3s ease;
}

.glow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 242, 195, 0.5);
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-btn:hover::before {
    opacity: 1;
}

.tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.glow-btn:hover+.tooltip {
    opacity: 1;
    bottom: -50px;
}

/* Footer */
footer {
    padding: 50px 0 30px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.backed-by {
    margin-top: 50px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.backed-by img {
    height: 250px;
    width: 250px;
    margin: 0 auto;
}

.ton-powered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    font-size: 0.9rem;
}

.ton-powered img {
    height: 20px;
}

.copyright {
    margin-top: 30px;
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .value-prop {
        flex-direction: column;
    }

    .value-prop-image,
    .value-prop-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    nav.desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0 100px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .onchain-coin {
        width: 100px;
        height: 100px;
    }
    .onchain-coin img {
    width: 300%;
    height: 300%;
    margin-left: -100px;
    /* margin-top: 20px; */
    /* background: url('imgs/onchain2.png') center/contain no-repeat; */
    /* animation: float 6s ease-in-out infinite; */
}
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .progress-line {
        height: 100%;
        width: 3px;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .step {
        width: auto;
    }

    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .step-content {
        min-height: auto;
        margin-top: 30px;
    }
}
