:root {
    --primary-color: #4f46e5;
    --bg-light: #f5f5f5;
    --bg-dark: #0b0b0f;
    --text-light: #111;
    --text-dark: #fff;
}

body.dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

body.light {
    background: var(--bg-light);
    color: var(--text-light);
}

.home-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 10%;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-left {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-left h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-left p {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-left p::before {
    content: "✔";
    color: var(--primary-color);
    font-weight: bold;
}

.hero-right img {
    width: 250px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
}

.features-section {
    padding: 80px 10%;
    text-align: center;
}

.features-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: left;
    padding: 20px;
}

.feature-icon {
    font-size: 28px;
    color: #4f46e5;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}

.feature-icon {
    font-size: 28px;
    color: #8b5cf6;
    margin-bottom: 10px;
}

.locations-section {
    padding: 100px 10%;
    text-align: center;
}

.locations-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.locations-section p {
    opacity: 0.7;
    margin-bottom: 50px;
}

.nodes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.node-card {
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 30px;
    text-align: left;
    transition: 0.3s;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.node-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.node-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.node-tag {
    display: inline-block;
    font-size: 12px;
    background: #8b5cf6;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 15px;
}

.node-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.node-card li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.node-card i {
    color: #8b5cf6;
    width: 18px;
}

.faq-section {
    padding: 100px 10%;
    text-align: center;
}

.faq-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 800px;
    margin: auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.08);
    transition: 0.3s;
}

.faq-item:hover {
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.2);
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.faq-question:hover {
    background: rgba(255,255,255,0.05);
}

.faq-question span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.faq-question i {
    color: #8b5cf6;
}

.faq-question i:last-child {
    transition: transform 0.3s ease;
    color: #aaa;
}

.faq-item.active .faq-question i:last-child {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 10px 20px 20px;
}

.faq-answer p {
    margin: 10px 0;
    font-size: 0.95rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-answer i {
    color: #8b5cf6;
    width: 16px;
}

.preview-banner {
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: center;
}

.preview-content {
    width: 100%;
    max-width: 900px;
    padding: 20px 25px;
    border-radius: 12px;
    text-align: center;
    background: #ffffff;
    color: #111;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body.dark .preview-content {
    background: rgba(255,255,255,0.04);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.preview-content h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.preview-content p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}

.ptero-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ptero-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    position: relative;
    animation: pteroFade 0.2s ease;
}

body.dark .ptero-box {
    background: #0f0f0f;
    border: 1px solid #1f1f1f;
}

.ptero-box h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.ptero-box p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.ptero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #a855f7;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: #e5e7eb;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    font-size: 13px;
    transition: 0.2s;
}

body.dark .btn-secondary {
    background: #1f1f1f;
    color: #fff;
}

.btn-secondary:hover {
    opacity: 0.85;
}

.ptero-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
}

.ptero-close:hover {
    opacity: 1;
}

@keyframes pteroFade {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .ptero-box {
        padding: 20px;
    }

    .ptero-box h3 {
        font-size: 16px;
    }

    .ptero-box p {
        font-size: 13px;
    }
}

.ptero-input {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.ptero-input input {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 60%;
}

body.dark .ptero-input input {
    background: #1f1f1f;
    border: 1px solid #333;
    color: #fff;
}

.ptero-input button {
    background: #22c55e;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .preview-banner {
        padding: 20px 5%;
    }

    .preview-content {
        padding: 18px;
    }

    .preview-content h2 {
        font-size: 1.3rem;
    }

    .preview-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .preview-content h2 {
        font-size: 1.1rem;
    }

    .preview-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 5%;
    }

    .faq-section h2 {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 16px;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .faq-container {
        max-width: 100%;
    }

    .faq-question span {
        gap: 8px;
    }
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .home-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }

    .hero-left {
        align-items: center;
    }

    .hero-left p {
        justify-content: center;
    }

    .hero-right img {
        width: 180px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .nodes-grid {
        grid-template-columns: 1fr;
    }

    .locations-section {
        padding: 60px 5%;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-section {
        padding: 60px 5%;
    }
}

@media (max-width: 500px) {
    .hero-left h1 {
        font-size: 2.2rem;
    }

    .hero-left p {
        font-size: 1rem;
    }
}