/* ═══════════════════════════════════════════════════════════════
   CALLEGO LANDING — Sections: features, steps, pricing, FAQ,
   CTA, footer, animations, responsive
   ═══════════════════════════════════════════════════════════════ */

/* ─── SECTIONS COMMON ──────────────────────────────────────── */
.section {
    position: relative;
    padding: 120px 24px;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    color: var(--accent2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-sub {
    font-size: 16px;
    color: var(--text2);
    margin-top: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── FEATURES ─────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 24px;
}

.feature-card h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text2);
    line-height: 1.65;
}

/* ─── HOW IT WORKS ─────────────────────────────────────────── */
.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    flex: 1;
    max-width: 320px;
    position: relative;
    transition: all 0.4s;
}

.step-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.step-number {
    font-family: 'Unbounded', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: rgba(108, 99, 255, 0.12);
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
}

.step-connector {
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.step-card h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.step-card p {
    font-size: 14px;
    color: var(--text2);
    line-height: 1.65;
}

/* 3D Rotating cube */
.step-3d {
    width: 80px;
    height: 80px;
    perspective: 600px;
    margin: 0 auto 24px;
}

.step-cube {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s linear infinite;
}

.cube-2 {
    animation-delay: -3s;
}

.cube-3 {
    animation-delay: -6s;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 14px;
    backface-visibility: visible;
}

.cube-face.front {
    transform: translateZ(40px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(40px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(40px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(40px);
}

/* ─── PRICING ──────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    transition: all 0.4s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pricing-featured {
    border-color: rgba(108, 99, 255, 0.4);
    background: linear-gradient(160deg, rgba(108, 99, 255, 0.08) 0%, var(--surface) 100%);
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pricing-label {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-price {
    margin-bottom: 24px;
}

.price-big {
    font-family: 'Unbounded', sans-serif;
    font-size: 36px;
    font-weight: 800;
}

.price-period {
    font-size: 14px;
    color: var(--text3);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text2);
    line-height: 1.5;
}

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(108, 99, 255, 0.25);
}

.faq-item.open {
    border-color: rgba(108, 99, 255, 0.35);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--text);
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
}

.faq-arrow {
    font-size: 18px;
    color: var(--text3);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-a {
    max-height: 300px;
}

.faq-a p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text2);
    line-height: 1.7;
}

/* ─── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
    padding: 60px 24px 120px;
}

.cta-card {
    background: linear-gradient(160deg, rgba(108, 99, 255, 0.12) 0%, rgba(17, 20, 40, 0.95) 100%);
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    font-size: 16px;
    color: var(--text2);
    margin-bottom: 32px;
    position: relative;
}

.cta-card .btn-primary {
    position: relative;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-brand {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text3);
    margin-left: 24px;
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 14px;
    color: var(--text2);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent2);
}

/* ─── REVEAL ANIMATION ─────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

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

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-3d-scene {
        display: none;
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-sub {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-row {
        flex-direction: column;
        gap: 24px;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 8px 0;
    }

    .step-card {
        max-width: 100%;
    }
}

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

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: var(--bg);
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 100;
    }

    .nav-links.open a {
        font-size: 22px;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

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

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 80px 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
    }

    .footer-copy {
        margin-left: 0;
    }
}
/* ─── LIGHT THEME OVERRIDES ────────────────────────────────── */
[data-theme="light"] .cta-card {
    background: linear-gradient(160deg, rgba(108, 99, 255, 0.08) 0%, rgba(240, 242, 248, 0.95) 100%);
    border-color: rgba(108, 99, 255, 0.18);
}
[data-theme="light"] .cta-card::before {
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08), transparent 70%);
}
[data-theme="light"] .cta-card h2 {
    color: #1a1d2e;
}
[data-theme="light"] .cta-card p {
    color: #5a6078;
}
[data-theme="light"] .feature-card::before {
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
[data-theme="light"] .pricing-featured {
    border-color: rgba(108, 99, 255, 0.3);
    background: linear-gradient(160deg, rgba(108, 99, 255, 0.05) 0%, #fff 100%);
}
