/* ═══════════════════════════════════════════════
   PUBLIC PAGES — Landing, Pricing, Features
   Dark luxury SaaS (Linear / Vercel / Raycast)
   ═══════════════════════════════════════════════ */

/* ---- Public Header (glass sticky) ---- */
.public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(180deg, #0f1117 0%, #131620 40%, #0f1117 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* ---- Hero ambient glow elements ---- */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    bottom: -50px;
    right: -100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

/* ---- Step connector line (between how-it-works steps) ---- */
.step-connector {
    position: absolute;
    top: 28px;
    left: calc(33.33% + 28px);
    right: calc(33.33% + 28px);
    height: 1px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.3));
}

/* ---- Plan Cards ---- */
.plan-card {
    position: relative;
    background: rgba(22, 25, 35, 0.75);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Featured plan: gradient border wrapper */
.plan-card.featured {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(26, 29, 39, 0.9);
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.1),
        0 8px 32px rgba(245, 158, 11, 0.08);
}

.plan-card.featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: gradient-rotate 4s linear infinite;
}

.plan-card.featured:hover {
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.15),
        0 16px 48px rgba(245, 158, 11, 0.12);
}

/* Popular badge */
.plan-popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    z-index: 2;
}

/* ---- Plan Price ---- */
.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    font-feature-settings: 'tnum';
}

/* ---- FAQ Items ---- */
.faq-item {
    transition: all 250ms ease;
}

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

/* ---- Feature Section (alternating layout) ---- */
.feature-section {
    opacity: 0;
    transform: translateY(20px);
    animation: feature-reveal 0.6s var(--ease-out-expo) forwards;
}

.feature-section:nth-child(1) { animation-delay: 0.1s; }
.feature-section:nth-child(2) { animation-delay: 0.2s; }
.feature-section:nth-child(3) { animation-delay: 0.3s; }
.feature-section:nth-child(4) { animation-delay: 0.4s; }
.feature-section:nth-child(5) { animation-delay: 0.5s; }
.feature-section:nth-child(6) { animation-delay: 0.6s; }

@keyframes feature-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Public Footer ---- */
.public-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(15, 17, 23, 0.5) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
    }

    .hero-glow-1 {
        width: 300px;
        height: 300px;
    }

    .hero-glow-2 {
        width: 200px;
        height: 200px;
    }

    .plan-card.featured {
        order: -1;
    }

    .step-connector {
        display: none;
    }
}

@media (max-width: 640px) {
    .plan-card {
        border-radius: 12px;
    }
}
